package com.xydtech.ecard.imp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;

import java.util.Date;

/*
 * 导入任务接口实体类
 * @author lin
 * @version 1.0
 * @create 2024/11/28 9:16
 */
public class EcardApiMerchantImportTask extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String phoneNumber;

    /**
     * 客户地址
     */
    private String address;


    /**
     * 任务id
     */
    private Long taskId;

    /**
     * 导入编号
     */
    private Long importId;

    /**
     * 类型 1：个体工商户 2：企业 3：个人 4：农业主体
     */
    private String merchantType;

    /**
     * 任务结束日
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    /**
     * 分配人
     */
    private Long managerId;

    /**
     * 执行人
     */
    private Long cmRegistId;

    /**
     * 所属机构
     */
    private Long deptId;

    /**
     * 营销结果 1：新增建档 2：历史建档 3：到期关闭
     */
    private String semResult;

    /**
     * 任务状态  0待处理 1已完成 2超时完成
     */
    private String sts;

    /**
     * 关闭时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date closeTime;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getTaskId() {
        return taskId;
    }

    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }

    public Long getImportId() {
        return importId;
    }

    public void setImportId(Long importId) {
        this.importId = importId;
    }

    public String getMerchantType() {
        return merchantType;
    }

    public void setMerchantType(String merchantType) {
        this.merchantType = merchantType;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Long getManagerId() {
        return managerId;
    }

    public void setManagerId(Long managerId) {
        this.managerId = managerId;
    }

    public Long getCmRegistId() {
        return cmRegistId;
    }

    public void setCmRegistId(Long cmRegistId) {
        this.cmRegistId = cmRegistId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getSemResult() {
        return semResult;
    }

    public void setSemResult(String semResult) {
        this.semResult = semResult;
    }

    public String getSts() {
        return sts;
    }

    public void setSts(String sts) {
        this.sts = sts;
    }

    public Date getCloseTime() {
        return closeTime;
    }

    public void setCloseTime(Date closeTime) {
        this.closeTime = closeTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this)
                .append("name", name)
                .append("phoneNumber", phoneNumber)
                .append("address", address)
                .append("taskId", taskId)
                .append("importId", importId)
                .append("merchantType", merchantType)
                .append("endDate", endDate)
                .append("managerId", managerId)
                .append("cmRegistId", cmRegistId)
                .append("deptId", deptId)
                .append("semResult", semResult)
                .append("sts", sts)
                .append("closeTime", closeTime)
                .toString();
    }
}
